package com.tenchael.iblog.exceptions;

import java.io.Serializable;

/**
 * Created by tenchael on 26/12/2017.
 */
public class BussinessException extends RuntimeException implements Serializable {

	private static final long serialVersionUID = 1L;

	private int code = 0;


	public BussinessException() {
		super();
	}

	public BussinessException(int code) {
		super();
		this.code = code;
	}

	public BussinessException(String message) {
		super(message);
	}

	public BussinessException(int code, String message) {
		super(message);
		this.code = code;
	}


	public BussinessException(String message, Throwable cause) {
		super(message, cause);
	}

	public BussinessException(int code, String message, Throwable cause) {
		super(message, cause);
		this.code = code;
	}

	public BussinessException(Throwable cause) {
		super(cause);
	}

	public BussinessException(int code, Throwable cause) {
		super(cause);
		this.code = code;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}
}
